# Build file for windows

from distutils.core import setup
import sys
sys.argv.append('py2exe')

py2exe_options = dict(
                      bundle_files=1,
                      dll_excludes=['msvcr71.dll'],  # Exclude msvcr71
                      compressed=True,               # Compress library.zip
                      packages=['lxml', 'gzip']
                      )

setup(
    author='Laurent RAYMOND',
    description='lastevents2twitter',
    version='0.4',
    console=[
        {
            "script": "lastevents2twitter.py",  # Main Python script
            "icon_resources": [(0, "lastevents2twitter.ico")]  # Icon to embed
        }
    ],

    options={'py2exe': py2exe_options},
    # options={"py2exe":{"packages": ['lxml','gzip']}},
    zipfile=None,
)
